<?php foreach($review->result() as $item):?>
<div class="talk-box">
    <h5 class="flex">
        <img src="<?php echo !empty($item->personal_photo)?$this->config->show_image_url($item->personal_photo):'/skins/common/images/logo_30.png';?>"/>
        <div class="talk-name flex flex-1">
            <?php if(empty($item->user_name)):?>
            <i>匿名</i>
            <?php else:?>
            <p><?php echo substr_cut($item->user_name)?></p>
            <?php endif;?>
        </div>
        <div class="talk-time">
            <?php echo $item->created_at;?>
        </div>
    </h5>
    <div class="talk-star">
        <div class="star-num flex">
            <?php for($i=1;$i<6;$i++):?>
            <i class="iconfont icon-xing <?php if($i <= $item->review_score):?>active<?php endif;?>"></i>
            <?php endfor;?>
        </div>
        <p><?php echo $item->user_content;?></p>
        <div class="talk-hot flex">
            <?php if(!empty($item->attribute_value)):?>
            <?php $attr = explode(',',$item->attribute_value);?>
            <span>规格：<?php foreach($attr as $value):?><?php echo $value;?><?php endforeach;?></span>
            <?php endif;?>
            <span>数量：<?php echo $item->number;?></span>
        </div>
        <?php if(!empty($item->reply_content)):?>
        <div class="talk-reply flex">
            <h6>回复：</h6>
            <div class="flex-1">
                <?php echo $item->reply_content;?>
            </div>
        </div>
        <?php endif;?>
    </div>
</div>
<?php endforeach;?>